all:	build	./build/step-3	solution.eps	final.pdf

build:  
	cmake -B build

./build/step-3: 
	make -C build

solution.eps: 	./build/step-3
	./build/step-3

final.pdf :	final.tex	solution.eps
	xelatex final.tex
clean:
	rm -fr *.aux *.pdf *.eps *.log build
.PHONY: all clean
